PHP: nl2br 您所在的位置:网站首页 replace /n PHP: nl2br

PHP: nl2br

2024-07-05 08:21| 来源: 网络整理| 查看: 265

nl2br

(PHP 4, PHP 5, PHP 7, PHP 8)

nl2br — Inserts HTML line breaks before all newlines in a string

Description nl2br(string $string, bool $use_xhtml = true): string

Returns string with or inserted before all newlines (\r\n, \n\r, \n and \r).

Parameters

string

The input string.

use_xhtml

Whether to use XHTML compatible line breaks or not.

Return Values

Returns the altered string.

Examples

Example #1 Using nl2br()



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有